//
//  main.m
//  strlen和sizeof的区别
//
//  Created by apple on 15/7/28.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
       
      // int x[100] = {'1','2','3','4','5'};
      //  char y[100]= "a";
      
        char str[10] = "china";
       // NSLog(@"%lu",strlen(str));
        
     //   NSLog(@"%zu",sizeof(str));
        
        printf("%lu",strlen(str));
        
     /*   int a = 1;
      int c = (a++,++a);
        
        NSLog(@"%d",c);*/
    }
    return 0;
}
